export interface CronFieldConfig {
    cronEvery: string;
    cycleFrom: number;
    cycleTo: number;
    intervalFrom: number;
    intervalStep: number;
    specificSpecific: string[];
    workday?: number;
    nthWeek?: number;
    nthDay?: number;
    lastDay?: number;
  }
  
  export interface CronState {
    second: CronFieldConfig;
    minute: CronFieldConfig;
    hour: CronFieldConfig;
    day: CronFieldConfig;
    month: CronFieldConfig;
    week: CronFieldConfig;
    year: CronFieldConfig;
    generatedCron: string;
    errorMessage: string;
  }
  
  export interface FieldDefinition {
    name: keyof CronState;
    label: string;
    type: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'week' | 'year';
  }